$(
    async function () {
        let id=new URLSearchParams(location.search).get("id")
let res =await axios.get(`http://localhost:5000/teacher`)
let teacher=res.data.data
$(`[name="teacherName"]`).val(teacher.teacherName)
$(`[name="teacherAge"]`).val(teacher.teacherAge)

    }
)